package com.lzh.webservice;

import com.lzh.entity.Orders;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import java.util.List;

/**
 * 服务端接口
 */
@WebService(name = "MyWebService"//暴露服务的名称
,targetNamespace = "https://webservice.lzh.com"//命名空间
)
public interface MyWebService {

    @WebMethod
    @WebResult(name = "String",targetNamespace = "")
    String sendMessage(@WebParam(name = "username")String username);

    @WebMethod
    @WebResult(name = "list",targetNamespace = "")
    List<Orders> getOrders(@WebParam(name = "code")String code);
}

